/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mapper;

import infobean.*;
import mapper.adress.*;
import mapper.aygit.AygitMapper;
import mapper.aygitTuru.AygitTuruMapper;
import mapper.aygitYazilimi.aygitYazilimiMapper;
import mapper.bellek.BellekMapper;
import mapper.buzdolabi.buzdolabiMapper;
import mapper.clientVersiyonMusteri.clientVersiyonMusteriMapper;
import mapper.clientYazilim.clientYazilimMapper;
import mapper.cozum.cozumMapper;
import mapper.duyuru.duyuruMapper;
import mapper.hataVeCozum.HataVeCozumMapper;
import mapper.ihbar.IhbarMapper;
import mapper.ipodMuzikcalar.ipodMuzikcalarMapper;
import mapper.klima.klimaMapper;
import mapper.musteri.musteriMapper;
import mapper.musteriAygitlari.musteriAygitlariMapper;
import mapper.resim.ResimMapper;
import mapper.telefon.TelefonMapper;
import mapper.televizyon.TelevizyonMapper;
import mapper.temsilci.TemsilciMapper;
import mapper.yorum.YorumMapper;
/**
 *
 * @author mete
 */
public class  mappers {
    public static iMapper get(Class persistenceClass ){
        
        if (persistenceClass.equals(adres.class)){
            return (iMapper) new AdresMapper();
        }
        else if(persistenceClass.equals(log.class)){
            return new mapper.log.logMapper();
        }

        else if(persistenceClass.equals(infobean.yorum.class)){
            return new YorumMapper();
        }

        else if(persistenceClass.equals(infobean.temsilci.class)){
            return new TemsilciMapper();
        }

        else if(persistenceClass.equals(infobean.televizyon.class)){
            return new TelevizyonMapper();
        }

        else if(persistenceClass.equals(infobean.telefon.class))
        {
            return new TelefonMapper();
        }

        else if(persistenceClass.equals(infobean.aygitTuru.class))
        {
            return new AygitTuruMapper();
        }

        else if(persistenceClass.equals(infobean.aygit.class))
        {
            return new AygitMapper();
        }

        else if(persistenceClass.equals(infobean.Bellek.class))
        {
            return new BellekMapper();
        }

        else if(persistenceClass.equals(infobean.aygitYazilimi.class))
        {
            return new aygitYazilimiMapper();
        }

        else if(persistenceClass.equals(infobean.hata.class))
        {
            return new ResimMapper();
        }

        else if(persistenceClass.equals(infobean.cozum.class))
        {            
            return new cozumMapper();
        }

           else if(persistenceClass.equals(infobean.hataVeCozum.class))
        {
            return new HataVeCozumMapper();
        }

        else if(persistenceClass.equals(infobean.clientYazilim.class))
        {
            return new clientYazilimMapper();
        }

        else if(persistenceClass.equals(infobean.clientVersiyonMusteri.class))
        {
            return new clientVersiyonMusteriMapper();
        }

        else if(persistenceClass.equals(infobean.ihbar.class))
        {
        	return new IhbarMapper();
        }

        else if(persistenceClass.equals(infobean.musteriAygitlari.class)){
            return new musteriAygitlariMapper();
        }
        
        else if(persistenceClass.equals(infobean.musteri.class)){
            return new musteriMapper();
        }
        else if(persistenceClass.equals(infobean.buzdolabi.class)){
            return new buzdolabiMapper();
        }
        else if(persistenceClass.equals(infobean.ipodMuzikcalar.class)){
            return new ipodMuzikcalarMapper();
        }
        else if(persistenceClass.equals(infobean.duyuru.class)){
            return new duyuruMapper();
        }        
        else if(persistenceClass.equals(infobean.klima.class))
        {
            return new klimaMapper();
        }
        return null;
    }

}
